<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__STATIC__/admin/js/html5.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/js/respond.min.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/js/PIE_IE678.js"></script>
    <![endif]-->
    <link href="__STATIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="__STATIC__/admin/css/style.css"/>
    <link href="__STATIC__/admin/assets/css/codemirror.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace.min.css" />
    <link rel="stylesheet" href="__STATIC__/admin/Widget/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome.min.css" />
    <!--[if IE 7]>
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome-ie7.min.css" />
    <![endif]-->
    <link href="__STATIC__/admin/Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />
    <link href="__STATIC__/admin/Widget/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />

    <title>修改产品</title>
</head>
<body>
<div class="clearfix" id="add_picture">
    <!--  <div id="scrollsidebar" class="left_Treeview">-->
    <!--    <div class="show_btn" id="rightArrow"><span></span></div>-->
    <!--    <div class="widget-box side_content" >-->
    <!--      <div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>-->
    <!--      <div class="side_list">-->
    <!--        <div class="widget-header header-color-green2">-->
    <!--          <h4 class="lighter smaller">选择产品类型</h4>-->
    <!--        </div>-->
    <!--        <div class="widget-body">-->
    <!--          <div class="widget-main padding-8">-->
    <!--            <div  id="treeDemo" class="ztree"></div>-->
    <!--          </div>-->
    <!--        </div>-->
    <!--      </div>-->
    <!--    </div>-->
    <!--  </div>-->
    <div class="page_right_style">
        <div class="type_title">修改商品</div>
        <form action="{:url('goods/update')}" method="post" enctype='multipart/form-data' class="form form-horizontal" id="form-article-add">
            <div class="clearfix cl">
                <label class="form-label col-2"><span class="c-red" style="color:red">*</span>产品名：</label>
                <div class="formControls col-10"><input type="text" class="input-text" value="{$goods.name}" placeholder="输入产品名"  name="name"></div>
                <input type="hidden" name="id" value="{$goods.id}">
            </div>

            <div class=" clearfix cl">


                <div class="Add_p_s">
                    <label class="form-label col-2"><span class="c-red" style="color:red">*</span>所属分类：</label>
                    <div class="formControls col-2"><span class="select-box">
				<select class="select" name="cate_id">
				   {volist name="category" id="vo"}
          <option value="{$vo.cate_id}" {if condition="$vo.cate_id eq $goods.cate_id"} selected="selected"{/if} > {$vo.cate_name}</option>
                    {/volist}
				</select>
				</span></div>
                </div>
                <div class="Add_p_s">
                    <label class="form-label col-2">库存：</label>
                    <div class="formControls col-2"><input type="text" class="input-text" value="{$goods.stock}" placeholder="" id="" name="stock" ></div>
                </div>

                <div class="Add_p_s">
                    <label class="form-label col-2"><span class="c-red" style="color:red">*</span>市场价格：</label>
                    <div class="formControls col-2"><input type="text" class="input-text" value="{$goods.price}" placeholder=""  name="price" ></div>
                </div>


            </div>


            <div class="clearfix cl">
                <label class="form-label col-2"><span class="c-red" style="color:red">*</span>产品参数：</label>
                <div class="formControls col-10">
                    <textarea name="parameter" cols="" rows="" class="textarea"  placeholder="产品参数..." datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onKeyUp="textarealength(this,500)">{$goods.parameter}</textarea>
                    <p class="textarea-numberbar"><em class="textarea-length">0</em>/500</p>
                </div>
            </div>
            <!--  图片上传-->
            <div class="clearfix cl">
                <label class="form-label col-2"><span class="c-red" style="color:red">*</span>图片上传：</label>
                <div class="formControls col-10">
                    <input type="file" name="face">
                </div>



            </div>


            <div class="clearfix cl">
                <label class="form-label col-2"><span class="c-red" style="color:red">*</span>产品详情：</label>
                <div class="formControls col-10">
                    <script id="editor" type="text/plain" style="width:100%;height:400px;">{$goods.detail}</script>
                </div>
            </div>
            <div class="clearfix cl">
                <label class="form-label col-2">排序值：</label>
                <div class="formControls col-10"><input type="text" class="input-text" value="{$goods.displayorder}" placeholder="输入排序值，越大越前"  name="displayorder"></div>

            </div>
            <div class="clearfix cl">
                <div class="Button_operation">
                    <button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="icon-save "></i>保存并提交</button>
                    <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </div>
</div>
</div>
<script src="__STATIC__/admin/js/jquery-1.9.1.min.js"></script>
<script src="__STATIC__/admin/assets/js/bootstrap.min.js"></script>
<script src="__STATIC__/admin/assets/js/typeahead-bs2.min.js"></script>
<script src="__STATIC__/admin/assets/layer/layer.js" type="text/javascript" ></script>
<script src="__STATIC__/admin/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/zTree/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/webuploader/0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="__STATIC__/admin/Widget/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script src="__STATIC__/admin/js/lrtk.js" type="text/javascript" ></script>
<script type="text/javascript" src="__STATIC__/admin/js/H-ui.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/H-ui.admin.js"></script>
<script>
    $(function() {
        $("#add_picture").fix({
            float : 'left',
            skin : 'green',
            durationTime :false,
            stylewidth:'220',
            spacingw:0,
            spacingh:260,
        });
    });
    $( document).ready(function(){
//初始化宽度、高度

        $(".widget-box").height($(window).height());
        $(".page_right_style").height($(window).height());
        $(".page_right_style").width($(window).width()-220);
        //当文档窗口发生改变时 触发
        $(window).resize(function(){

            $(".widget-box").height($(window).height());
            $(".page_right_style").height($(window).height());
            $(".page_right_style").width($(window).width()-220);
        });
    });
    $(function(){
        var ue = UE.getEditor('editor');
    });

</script>

</body>
</html>